import { Button, Result } from 'antd';
import { useNavigate } from'react-router-dom'


function NoRight() {
  const navigate = useNavigate()
  return (
    <div style={{width:'100%',height:'100%',display:'flex',justifyContent:'center',alignItems:'center'}}>
    <Result
      status="403"
      title="403"
      subTitle="您的权限不够，无法访问该页面"
      extra={<Button type="primary" onClick={()=>{navigate('/')}}>返回首页</Button>}
    />
  </div>
  )
}

export default NoRight